<template>
<div>
    <button @click="login">无参</button><br>
    <button @click="delu">有参</button>
</div>

</template>

<script>
import axios from 'axios'
export default {
data(){
return {


}

},
methods:{
    login(){
        axios.get('http://157.122.54.189:9083/post').then(res=>console.log(res)).catch(err=>console.log(err))
    },
    delu(){
         axios.get('http://157.122.54.189:9083/post',{
             params:{
                 pageIndex:1,
                 pageSize:2,
                 category:8
             }
         }).then(res=>console.log(res)).catch(err=>console.log(err))
    }
}
}
</script>
<style lang='less' scoped>

</style>
